using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using poco;

namespace poco.sample.Controllers
{
    public class ContactsController : Controller
    {
        //
        // GET: /Contacts/

        public ActionResult PreCanned()
        {
            Contact[] contacts = new Contact[] 
            {
                new Contact() {ID = "1", DisplayName = "Bill"},
                new Contact() {ID = "2", DisplayName = "Edna"},
                new Contact() {ID = "3", DisplayName = "Vera"},
                new Contact() {ID = "4", DisplayName = "Frank"}
            };

            JsonResult result = new JsonResult();
            result.Data = contacts;
            return result;
        }

    }
}
